package top.opm.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.data.domain.Sort;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.jx.oshi.model.SystemHardwareInfo;
import top.opm.entity.WindowsServer;
import top.opm.model.ResultData;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping(value = "/sysInfoController")
@Api(tags = "服务器运行环境信息")
public class SysInfoController {

    @GetMapping(value = "/sysInfo")
    @ApiOperation(value="sysInfo", notes="sysInfo")
    public ResultData sysInfo(){
        SystemHardwareInfo systemHardwareInfo = new SystemHardwareInfo();
        systemHardwareInfo.copyTo();
        return ResultData.success(systemHardwareInfo);
    }
//    @GetMapping(value = "/cpu")
//    @ApiOperation(value="cpu", notes="cpu信息")
//    public ResultData cpu(){
//        return ResultData.success(all);
//    }
//    @GetMapping(value = "/cpu")
//    @ApiOperation(value="cpu", notes="cpu信息")
//    public ResultData cpu(){
//        return ResultData.success(all);
//    }
//    @GetMapping(value = "/cpu")
//    @ApiOperation(value="cpu", notes="cpu信息")
//    public ResultData cpu(){
//        return ResultData.success(all);
//    }
//    @GetMapping(value = "/cpu")
//    @ApiOperation(value="cpu", notes="cpu信息")
//    public ResultData cpu(){
//        return ResultData.success(all);
//    }
//    @GetMapping(value = "/cpu")
//    @ApiOperation(value="cpu", notes="cpu信息")
//    public ResultData cpu(){
//        return ResultData.success(all);
//    }
}
